package com.example.borui.partpositionproject.partpisition.adapter;

import com.example.borui.partpositionproject.partpisition.base.BasePartPosition;
import com.example.borui.partpositionproject.partpisition.view.IPartPositionBean;
import java.util.List;

/**
 * Created by borui on 2017/9/29.
 */

public interface IPartInterface<T> {

    /** 获取 相应位置的 数据bean ***/
    T getItem(int position);

    /*** 清空所有数据 ***/
    void clear();

    void notifyDataSetChanged();

    int getItemCount();

    void addItems(List<T> mList);

    BasePartPosition buildProcessor(int position, IPartPositionBean bean);

    void onBindPartPosition(BasePartPosition basePartPosition, int partPosition, int position);

    String logName();
}
